<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ include file="/commons/pages/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
</head>
<body>
<div class="subtitle">
  <h3>密码修改</h3>
</div>
    <s:form action="Password!save.action" method="post">
	 <s:token />
      <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tbl_list">
      	<tr>
          <th>原 密 码：</th>
          <td><input name="old_pass_word" type="password" class="webinput" dataType="Require" msg="原密码不能为空，请重新填写！"  size="35" maxlength="30" /> <font color="red"><s:fielderror fieldName="password"></s:fielderror></font></td>
        </tr>
        <tr>
          <th>新 密 码：</th>
          <td><input name="pass_word" type="password" class="webinput" dataType="Require" msg="新密码不能为空，请重新填写！"  size="35" maxlength="30" /></td>
        </tr>
        <tr>
          <th>重复密码：</th>
          <td><input name="re_pass_word" type="password" class="webinput" dataType="Repeat" to="pass_word" msg="两次密码不一致，请重新填写！" size="35" maxlength="30" /></td>
        </tr>
		<tr>
			<th>&nbsp;</th>
			<td><input name="Submit11" type="submit" class="websub"
				value="确 定" /> <input name="Submit2" type="button" class="websub"
				value="返 回" onclick="history.go(-1);" /></td>
		</tr>
	</table>
</s:form>
<script src='/commons/scripts/validator.js'></script>
<script language="javascript" type="text/javascript">
window.onload = function(){
	
	form = document.forms[0];
		
	form.onsubmit = function () {
		return Validator.Validate(this, 3)
	}
	<s:if test="actionMessages.size>0">
	alert("密码修改成功！按确定重新登陆！");
	location.href='${request.contextPath}/logout.action';
	</s:if>
}
</script>
</body>
</html>
